//智慧安防apis
const securityApi=(vm)=>{
    return{
		//查询安全教育列表
        afSafetyEducationList:(data)=>{
            return vm.$u.get('/security/afSafetyEducation/list',data)
        },
        //查询安全教育详情
        afSafetyEducationInfo:(id)=>{
            return vm.$u.get(`/security/afSafetyEducation/${id}`)
        },
        //查询电梯管理列表
        afElevatorList:(data)=>{
            return vm.$u.get('/security/afElevator/list',data)
        },
        //获取电梯管理详细信息
        afElevatorInfo:(id)=>{
            return vm.$u.get(`/security/afElevator/${id}`)
        },
        errorElevatorList:(data)=>{
            return vm.$u.get(`/security/afElevator/errorList`,data)
        },
        afCheckLog:(data)=>{
            return vm.$u.post(`/security/afCheckLog`,data)
        },
        //消防设备维护
        afMaintenance:(data)=>{
            return vm.$u.post(`/security/afMaintenance`,data)
        },
        afMaintenanceList:(data)=>{
            return vm.$u.get(`/security/afMaintenance/list`,data)
        },
        inspectionRecord:(data)=>{
            return vm.$u.post(`/security/inspectionRecord/wx/add`,data)
        },
        inspectionRecordList:(data)=>{
            return vm.$u.get(`/security/inspectionRecord/list`,data)
        },
        inspectionByQr:(qrCode,type='巡逻')=>{
            return vm.$u.get(`/security/inspectionLocation/wx/${type}/${qrCode}`)
        },
        actMaintainOrderData:(code)=>{
            return vm.$u.get(`/activiti/actMaintainOrderData/vo/${code}`)
        },
        computeCard:(data)=>{
            return vm.$u.get(`/security/inspectionRecord/wx/computeCard`,data)
        },
        deviceMaintain:(data)=>{
            return vm.$u.post(`/energy/deviceMaintain`,data)
        },
        //获取accessToken
        ysAccessToken(){
            return  vm.$u.get(`/security/afDeviceCamera/ysAccessToken`)
        }



}
}


export default securityApi
